TYPE
The type of the value to be converted to
CSharpTest.Net
TryParse<TYPE>(String,TYPE) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Utils Namespace > StringConverter Class > TryParse Method : TryParse<TYPE>(String,TYPE) Method

input
The string value to convert
value
The value once converted

Glossary Item Box

Converts the provided string to a value of TYPE if the type is registered, or raises ArgumentOutOfRangeException if no transform is registered for that type.

Syntax

Visual Basic (Declaration) 
Public Overloads Function TryParse(Of TYPE)( _
   ByVal input As String, _
   ByRef value As TYPE _
) As Boolean
C# 
public bool TryParse<TYPE>( 
   string input,
   out TYPE value
)

Parameters

input
The string value to convert
value
The value once converted

Type Parameters

TYPE
The type of the value to be converted to

Return Value

True if it was able to make the conversion

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeExceptionThe exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys